﻿using System;
using System.Windows.Forms;

namespace iTunes_Playcount_Updater_GUI
{
    public partial class ReportSaved : UserControl
    {
        public ReportSaved()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (radioButton1.Checked)
                try
                { System.Diagnostics.Process.Start(String.Format("{0}\\iTunes Playcount Updater Report {1}{2}{3}.xml", Application.StartupPath, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Year)); }
                catch
                { System.Diagnostics.Process.Start(String.Format("{0}\\iTunes Playcount Updater Report {1}{2}{3}.txt", Application.StartupPath, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Year)); }
            Application.Exit();
        }
    }
}
